package org.example.springmvc_demo7.service;

import org.example.springmvc_demo7.mapper.UserInfoMapper;
import org.example.springmvc_demo7.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo getUserInfoByName(String username){
        return userInfoMapper.getUserInfoByName(username);
    }

}
